package com.riant;

import com.riant.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Classname WebApplication
 * @Description TODO
 * @Date 2021/8/17 23:46
 * @Created by 张斌
 */
public class WebApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TransactionConfig.class);
        AccountService accountService = (AccountService)applicationContext.getBean("accountService");
        accountService.transfer("Jock1", "Jock2", 100.0D);
    }
}
